var _Storage = require('utils/storage.js');

// ==========================
// Prefer
// ==========================
function Prefer() {
    this.mStorage = _Storage.internal('prefer.json', {});
    this.mRecords = [];
}
Prefer.prototype.load = function () {
    var obj = this.mStorage.load();
    this.toturialfinished = obj.toturialfinished || false;
};
Prefer.prototype.save = function () {
    var obj = {};
    obj.toturialfinished = this.toturialfinished;
    this.mStorage.save(obj);
};

Prefer.prototype.isToturialfinished = function () {
    return this.toturialfinished;
};
Prefer.prototype.finishToturial = function () {
    this.toturialfinished = true;
};

// single instalce
module.exports = new Prefer();